package com.rent.weixin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 微信菜单按钮
 * </p>
 *
 * @author zn
 * @since 2025-03-05
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("wx_menu_item")
@ApiModel(value = "WxMenuItem对象", description = "微信菜单按钮")
public class WxMenuItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("menu_id")
    private Integer menuId;

    @ApiModelProperty("父ID")
    @TableField("parent_id")
    private Integer parentId;

    @ApiModelProperty("按钮说明")
    @TableField("menu_note")
    private String menuNote;

    @ApiModelProperty("位置1左2.中3右")
    @TableField("position")
    private Integer position;

    @ApiModelProperty("菜单名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("参数")
    @TableField("params")
    private String params;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("状态")
    @TableField("status")
    private Integer status;

    @TableField("key")
    private String key;

    @ApiModelProperty("菜单类型")
    @TableField("menu_type")
    private String menuType;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("菜单链接")
    @TableField("url")
    private String url;
}
